<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<div title="欢迎"
	style="width: 98%; height: 98%; padding: 1px; overflow: hidden;">
	<%
		if (session.getAttribute("user") != null) {
	%>
	<h2>欢迎您：${user.userName}</h2>
	<a href="user/login.jsp">注销</a><br>
	<%
		} else {
	%>
	请您先登录！<a href="user/login.jsp">登录</a>
	<%
		response.setHeader("refresh", "0; URL=login.jsp");
		}
	%>
	<h2>欢迎使用后台管理系统</h2>
	<div>
		<a href="admin/toHtml">生成HTML主页</a> <br> <a href="index">打开主页</a>
	</div>
</div>